   
<!--- JQuery za validaciju forme----------->
<script type="text/javascript" src="form/jquery-1.2.6.min.js"></script>

 <script type="text/javascript">                                         
   // we will add our javascript code here           
        $(document).ready(function()
        {
         $("#ajax-contact-form").submit(function()
         {

            var str = $(this).serialize();

               $.ajax(
               {
               type: "POST",
               url: "form/contact.php",
               data: str,
               success: function(msg)
               {

            $("#note").ajaxComplete(function(event, request, settings)
            {
            if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
            {
            result = '<div class="notification_ok">Poruka je uspesno poslata</div>';
            $("#fields").hide();
            }
            else
            {
            result = msg;
            }

            $(this).html(result);

            });

            }

             });

            return false;

         });
        
        });
        
 </script>
 
  <script type="text/javascript">                                         
   // we will add our javascript code here           
        $(document).ready(function()
        {
         $("#ajax-contact-form2").submit(function()
         {

            var str = $(this).serialize();

               $.ajax(
               {
               type: "POST",
               url: "form/contact2.php",
               data: str,
               success: function(msg)
               {

            $("#note").ajaxComplete(function(event, request, settings)
            {
            if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
            {
            result = '<div class="notification_ok">Poruka je uspesno poslata</div>';
            $("#fields").hide();
            }
            else
            {
            result = msg;
            }

            $(this).html(result);

            });

            }

             });

            return false;

         });
        
        });
        
 </script>  
<!------------------------------- END -------------------------------------------------------------------------->
    
    
        
  